Bash *? wildcard support for remote resource export/import#20
Open
jgoff wants to merge 8 commits intom110:masterfrom
Open
Bash *? wildcard support for remote resource export/import#20jgoff wants to merge 8 commits intom110:masterfrom
jgoff wants to merge 8 commits intom110:masterfrom
Conversation
currently only for remote resources.
|
Hi @m110, what's the state of this PR ? It would be great to have this feature. |
Owner
|
Hey. Sorry for letting this hang so long. I had some plans to add the wildcard support for all commands at the time, but never found some time to work on it. I'll check if this still works as expected with master and we're good to go! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hi Miłosz,
So here is the basic working first version. No doubt there will be a bunch of stylistic concerns (in some cases I have steered clear of changing certain things that seem obvious to change, for example not hacking at 'list' rather just adding 'list_path').
Outside of the readme, I'll mention again my use case which is entirely batch mode. I use some dev machine to create dashboards, then export them out so they can be stored in SCM. Once in SCM (in the future will have a commit trigger to do this automagically), I push (import) them out to the production hosts, e.g.
`
./grafcli export remote/dev/* $SCMROOT/grafana/dashboards
for h in
cat prod_hosts.txt; do./grafcli import $SCMROOT/grafana/dashboards remote/$h
done
`
There are a few caveats listed in the Readme.md.
By all means suggest ways you would prefer to see this refactored or changed to fit your code base or code style, it's your project.
thx
-jeff